<%@page import="java.util.List"%>
<%@page import="com.yoostar.utils.SystemInfoUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div>
	<div class="panel panel-default">
		<div class="panel-heading">系统信息</div>
		<div class="panel-body">
			<table class="table table-bordered">
				<tbody>
				<tr>
					<td>操作系统</td>
					<td><%=SystemInfoUtils.getOsName()%></td>
				</tr>
				<%
					List<String[]> netinfoList = SystemInfoUtils.getNetInfo();
					String ips = "";
					String macs = "";
					for (String[] netinfo : netinfoList) {
						if (ips.equals("")) {
							ips = netinfo[0];
						} else {
							ips = ips + ", " + netinfo[0];
						}
						if (macs.equals("")) {
							macs = netinfo[1];
						} else {
							macs = macs + ", " + netinfo[1];
						}
					}
				%>
				<tr>
					<td>IP</td>
					<td><%=ips%></td>
				</tr>
				<tr>
					<td>MAC</td>
					<td><%=macs%></td>
				</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
</body>
</html>